package com.dream.technology.vo;

/**
 * @Auther: chenqi
 * @Date: 2018/11/26 17:25
 * @Description:
 * @Company: zytech
 * @Email: 1043489207@qq.com
 */
public enum ErrorCode {

    SUCCESS("ZYCASH-200","成功"),
    LOGINPASSWORD("ZYCASH-1001","密码错误"),
    ACCOUNTROZEN("ZYCASH-1002","登录失败，该用户已被冻结"),
    ACCOUNTNOTEXIST("ZYCASH-1003","该用户不存在"),
    EXCEPTION("ZYCASH-1004","系统异常，请稍后重试"),
    RELOGIN("ZYCASH-1005","登陆信息失效，请重新登陆"),
    PARAMSERROR("ZYCASH-1006","请求参数有误"),
	SAVEERROR("ZYCASH-1007","保存失败"),
	UPDATEERROR("ZYCASH-1008","更新失败"),
	SAVEEXISTED("ZYCASH-1009","已经存在上架的弹窗产品"),
    UNAUTHORIZE("ZYCASH-1010","对不起，您无权访问，请联系管理员"),
    FAILVISIT("ZYCASH-1011","服务调用失败"),
    GROUPEXSIT("ZYCASH-1012","群组名称已存在"),
    PARAMSINVALID("ZYCASH-1013","没有符合条件的订单"),
    ROLEINVALID("ZYCASH-1014","该角色不存在"),


    // 用户中心错误码
    REREGISTER("ZYCASH-2001","手机号码已被使用"),
    CAPTCHA("ZYCASH-2002","图形验证码错误"),
    CAPTCHASENT("ZYCASH-2003","验证码发送频繁，请半小时后再来获取"),
    REREGISTERED("ZYCASH-2004","手机号码已注册"),
    MOBILECAPTCHA("ZYCASH-2005","手机验证码错误"),
    MOBILELOCKED("ZYCASH-2006","账号已被锁定,请联系全国唯一客服电话：010-51276402"),
    MOBILECANCLED("ZYCASH-2007","帐号已注销"),
    INVALIDPRODUCT("ZYCASH-2008","无效的产品"),
    INVALIDLOGIN("ZYCASH-2009","用户未登录"),
    USERNOTEXIST("ZYCASH-2010","该用户不存在"),
    PASSWORDERROR("ZYCASH-2011","密码错误"),
    PASSWORDERROR1("ZYCASH-2012","新密码不能与当前密码相同"),
    OLDPASSWORDERROR("ZYCASH-2013","原密码错误"),
    MOBILEEXCEPTION("ZYCASH-2014","帐号异常"),


    // 额度中心错误码
    COPYFLOWERROR("ZYCASH-3001","复制额度流程失败"),
    INITAMOUNTRROR("ZYCASH-3002","初始化额度失败"),
    NONEAMOUNT("ZYCASH-3003","暂无可借额度"),
    REDUCEAMOUNTERROR("ZYCASH-3004","放款后扣除用户可用额度失败"),

    // 订单中心错误码
    QUOTAERROR("ZYCASH-4001","借款额度不符合要求"),
    PRODUCTERROR("ZYCASH-4002","借款产品期数不符合要求"),
    SUBMITERROR("ZYCASH-4003","订单提交失败，请联系客服"),
    PLANNOTEXIST("ZYCASH-4004","还款计划不存在"),
    PLANSTATUSERROR("ZYCASH-4005","状态有错误"),
    QUALIFICATIIONDISSATISFIED("ZYCASH-4006","综合评分不足，请稍后重试"),
    UNFULFILLEDORDER("ZYCASH-4007","您有一笔未完成的订单，请勿再次下单"),
    REPEATSUBMIT("ZYCASH-4008","请勿重复提交"),
    THREEDAYLIMIT("ZYCASH-4009","三天内有被拒的借款,暂时无法申请借款!"),
    BATCHREPAYMENTONE("ZYCASH-4010","批量扣款中，请于8点50分后发起主动还款！"),
    BATCHREPAYMENTTWO("ZYCASH-4011","批量扣款中，请于17点50分后发起主动还款！"),
    THREEDAYDEFERLIMIT("ZYCASH-4012","最近三天内已展期过了,请勿重复展期!"),
    ORDERPROCESSING("ZYCASH-4013","订单正在处理中，请勿重复操作！"),
    ORDERCOMPLETION("ZYCASH-4014","订单已完成，请刷新页面！"),
    ORDERACTIVEPARTIAL("ZYCASH-4015","部分还款无法使用免息券！"),

    //消息中心错误码
    URLEERROR("ZYCASH-5001","产品渠道地址未配置"),
    INVALIDCHANNEL("ZYCASH-5002","无效的渠道"),


    //授信
    CREDITERROR("ZYCASH-60001","绑卡失败"),
    CREDITDELBANKERROR("ZYCASH-6000","删卡失败-有未还完订单"),
    CREDITIDCARDERROR("ZYCASH-6002","该身份证信息已存在"),
    CREDITIDCARDAUT("ZYCASH-6003","未实名认证"),
    CREDITFACEAUT("ZYCASH-6008","人脸识别未认证"),
    CREDITOPERATEAUT("ZYCASH-6004","运营认证中"),
    CREDITOPERATEAUTFAIL("ZYCASH-6005","运营认证失败"),
    CREDITBANKFAIL("ZYCASH-6006","该卡已绑定"),
    CREDITIDCARDAUTERROR("ZYCASH-6007","身份证信息有误请重新认证"),
    CREDITLINKMANAUT("ZYCASH-6009","联系人未认证"),
    CREDITREGISTER("ZYCASH-6010","用户注册失败"),
    //消息
    NOFILEEXCEPTION("ZYCASH-70001","未上传文件"),
    FILETYPEEXCEPTION("ZYCASH-70002","文件类型错误"),
    USERDCLASSIFY("ZYCASH-70003","分类使用中,不可删除"),
    MESSAGECLASSIFY("ZYCASH-70004","消息使用中,不可删除");


    private String errorCode;
    private String errorMsg;
    ErrorCode(String errorCode, String errorMsg){
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
